﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Microsoft.Practices.ServiceLocation;
using TimeTravel.IServices;

namespace TimeTravel.Controllers.System
{
    public partial class SystemController : BaseController
    {
        static readonly ISiteMessageService SiteMessageService = ServiceLocator.Current.GetInstance<ISiteMessageService>();
        public PartialViewResult SiteMessage()
        {
            var siteMessageList = SiteMessageService.GetAll();
            return PartialView(SubPagePath + "_SiteMessage.cshtml", siteMessageList);
        }

        public ActionResult AddSiteMessage()
        {
            return null;
        }
    }
}
